package com.example.deepschool.Model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class CourseReview {
	
	@Schema(description = "评价ID")
    private Long id;
	
	@Schema(description = "关联的课程ID")
    private Long courseId;
	
	@Schema(description = "发表评价的用户ID")
    private Long userId;

    @NotNull
    @Schema(description = "评分",
            minimum = "0",
            maximum = "10")
    private Long rating;
	
	@Schema(description = "评价内容")
    private String content;
	
	@Schema(description = "评价时间")
    private java.sql.Timestamp reviewTime;
}
